package com.atguigu.gmall.pay.alipay;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author A
 * @version 1.0
 * @description: TODO
 * @date 2024/10/14 19:23
 */
@RestController
@RequestMapping("/api/payment")
public class AlipayController {
    @PostMapping("/notify/success")
    public String AlipayNotify(@RequestBody Map<String,Object> map){

        System.out.println("支付宝到达:"+map);
        return "success";
    }
}
